from django.db.models import IntegerChoices


class UserLogEvent(IntegerChoices):
    """用户日志事件"""

    CREATE_USER = 1, "创建用户"
    EDIT_USER_NAME = 2, "编辑用户名"
    EDIT_BIRTHDAY = 3, "编辑生日"
    UPLOAD_AVATAR = 4, "上传头像"
    EDIT_PASSWORD = 5, "修改密码"
    EDIT_EMAIL = 6, "修改邮箱"
    CAMPUS_IDENTITY = 7, "申请高校身份认证"
    CAMPUS_IDENTITY_FAILED = 8, "高校身份认证失败"
    CAMPUS_IDENTITY_SUCCESS = 9, "高校身份认证成功"
    VIEW_ARTICLE = 10, "浏览文章"
    VIEW_DISCUSS = 11, "浏览讨论"
    VIEW_SHARE = 12, "浏览分享"


class Sex(IntegerChoices):
    SECRET = 0, "保密"
    MALE = 1, "男性"
    FEMALE = 2, "女性"
